package com.tubang.organization.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tubang.common.entity.BaseEntity;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author wsl
 * @since 2017-11-30
 */
@TableName("tb_role")
public class RoleEntity extends BaseEntity<RoleEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * 角色名称
     */
	private String name;
    /**
     * 英文名称
     */
	private String enname;
    /**
     * 角色类型
     */
	@TableField("role_type")
	private String roleType;



	/**
	 * 所属组织id
	 */
	@TableField("company_id")
	private String companyId;



	public String getName() {
		return name;
	}

	public RoleEntity setName(String name) {
		this.name = name;
		return this;
	}

	public String getEnname() {
		return enname;
	}

	public RoleEntity setEnname(String enname) {
		this.enname = enname;
		return this;
	}

	public String getRoleType() {
		return roleType;
	}

	public RoleEntity setRoleType(String roleType) {
		this.roleType = roleType;
		return this;
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	@Override
	public String toString() {
		return "Role{" +
			"name=" + name +
			", enname=" + enname +
			", roleType=" + roleType +
			"}";
	}
}
